<?php

class TeamModel{
    public $b;

    public function __construct(){
        $this->b=MysqlDb::getInstance();
    }

    public function team($id){
        $sql='select * from team where id='.$id;
        return $this->b->query($sql);
    }

    public function pcount($id){
        $sql='select count(*) from player where tid='.$id;
        return $this->b->query($sql);
    }

    public function player($id){
        $sql='select * from player where tid='.$id;
        return $this->b->query($sql);
    }
}

?>
